<template>
    <div id="login">
        <header class="mui-bar mui-bar-nav">

            <img src="login/1.png" @click="back">
            <h1 class="mui-title">登录</h1>
            <!-- <span ><img src="login/1.png" @click="back"></span><h1 class="mui-title">登录</h1> -->
        </header>
        <section>
            <div id="space">
                <div id="logo">
                    <img src="login/2.png" >
                </div>
                <div id="email"  @click="reg">手机号注册</div>
                <div id="phone"  @click="go">手机一键登录</div>
            </div>			
            
        </section>
    </div>
</template>

<script>
export default {
    methods:{
        go(){
            this.$router.push("/loginsecond")
        },
        reg(){
            this.$router.push("/reg")
        },
        back(){
            this.$router.go(-2)
        }
    }
}
</script>
<style>
html,body{
    height: 100%;    
    background-color: #f5f5f5;
}
</style>

<style scoped>
#login{
    width: 3.75rem;
    height: 100%;

}
header{
    display: flex;
    height: 0.55rem;
    font-size: 0.16rem;
    width: 100%;
    background-color: #f5f5f5;
    padding: 0.12rem 0;
}
header img{
    height: 0.34rem;
    position: absolute;
}
header h1{
    font-size: 0.16rem;
    line-height: 0.34rem;
    margin: auto;
    font-weight: 700;
    /* height: 0.34rem; */
    display: inline;
}

#space{
    width: 3.59rem;
    height: 3.8rem;
    margin: auto;
    border-radius: 0.03rem;
    background-color: white;
}
#logo{
    width: 100%;
    text-align: center;
    padding-top: 0.3rem;
}
#logo>img{
    margin: auto;
    width: 1.5rem;
    height: 1;
    margin: auto;
}
#email{
    width: 3.08rem;
    height: 0.41rem;
    margin: auto;
    background-color: #58aa48;
    font-size: 0.16rem;
    text-align: center;
    color: white;
    line-height: 0.41rem;
    border-radius: 0.3rem;
    margin-top: 0.6rem;
    font-weight: 500;
}
#phone{
    width: 3.08rem;
    height: 0.41rem;
    margin: auto;
    background-color: #7285bf;
    font-size: 0.16rem;
    text-align: center;
    color: white;
    line-height: 0.41rem;
    border-radius: 0.3rem;
    margin-top: 0.3rem;
    font-weight: 500;
    margin-bottom: 0.67rem;
}
</style>